package service;

import dao.userMapper;
import entity.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UpdateUserService {

    @Autowired
    private userMapper userMapper;

    public boolean updateUser(user user){
        int i = userMapper.updateByPrimaryKeySelective(user);
        if(i > 0){
            return true;
        }
        return false;
    }
}
